/**
 * Created by kangdaye on 16/6/13.
 */
app.factory('userListCache', function() {
    return{
        listTableHeader : [
            {displayName:'ID', field: 'id', width:'5%'},
            {displayName:'账户', field: 'username', width:'25%'},
            {displayName:'使用人', field: 'name', width:'20%'},
            {displayName:'开通时间', field: 'createTime', width:'20%'},
            {displayName:'状态', width:'15%',cellTemplate:'' +
                '<div>' +
                    '{{row.enable ? "启用中" : "已暂停"}}'+
                '</div>'
            },
            {displayName:'操作', field: 'id', width:'20%',cellTemplate:'' +
                '<div>' +
                    '<a href="javascript:;" ng-click="evt.entity.addEdit(row)">编辑</a>'+
                    '<a class="ml-10" href="javascript:;" ng-click="evt.entity.delete(row.id)" ng-if="!row.internal">删除</a>'+
                '</div>'
            }
        ]
    }
});
